package com.tebiecloud.mpweixin.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.mpweixin.client.model.entity.MpminiAccountRef;
import com.tebiecloud.mpweixin.client.model.entity.MpminiUser;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 登录账号关联接口
 * @Author: tebie
 * @Date: 2019-09-24 19:54
 */
public interface IMpminiAccountRefServiceClient {

    /**
     * 获取最新的关联信息
     * @param accountId
     * @return
     */
    @PostMapping("/feign/mpminiaccountref/infoMpminiAccountRef")
    ResultBody<MpminiAccountRef> getLastMpminiAccountRef(@RequestParam("accountId") long accountId);

    /**
     * 添加关联信息
     * @param accountId
     * @param accountUsernameRef
     * @return
     */
    @PostMapping("/feign/mpminiaccountref/addMpminiAccountRef")
    ResultBody addMpminiAccountRef(@RequestParam("accountId") long accountId,
                                   @RequestParam("accountUsernameRef") String accountUsernameRef);


    @PostMapping("/feign/mpminiaccountref/removeMpminiAccountRef")
    ResultBody removeMpminiAccountRef(@RequestParam("accountId") long accountId, @RequestParam("account") String account);

}
